class CreateProductTags < ActiveRecord::Migration
  def self.up
    create_table :product_tags do |t|
      t.references :user
      t.string :name
    end

    add_index :product_tags, :user_id
    add_index :product_tags, :name
  end

  def self.down
    drop_table :product_tags
  end
end
